<template>
    <div class="no-found">
        <div class="mask"></div>
        <div class="box">
            <div class="notext">
                <p>404</p>
                <p>私密麻斜，未能找到该页面</p>
                <div>
                    <el-button @click="jump">返回首页</el-button>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    setup(props, context) {
        
        // 返回首页
        const jump = function() {
            context.parent.$router.push('/home');
        }

        return { jump }
    }
}
</script>

<style lang="less" scoped>
.no-found {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../assets/images/nofound.jpg') center;
    background-size: cover;
}

.box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    border: 4px solid #fff;
    box-shadow: 0 10px 160px #fff;
    .notext {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 500px;
        text-align: center;
        transform: translate(-50%, -50%);
        font-size: 40px;
        font-weight: 700;
        color: #fff;
        p:nth-child(1) {
            letter-spacing: 8px;
        }
    }
}
</style>